package com.xuln.common.category.dao;

import java.util.List;
import java.util.Locale;

import com.xuln.common.category.entity.Category;
import com.xuln.framework.dao.IBaseDao;
import com.xuln.framework.entity.PrimaryKey;

public interface ICategoryDao extends IBaseDao<Category, PrimaryKey> {

	public void deleteById(Long categoryId);

	public List<Category> getCategory(Long categoryId);

	public List<Category> getChildCategory(Long categoryId);

	public List<Category> getChildCategory(Long categoryId, String locale);

	public List<Category> getAllCategoryByType(String type, String locale);

	public List<Category> getAllChildCategory(Long categoryId, String locale);

	public List<Category> loadAllByLocale(Locale locale);

	public List<Category> getAllParent(Long categoryId, String string);

}
